package com.yumingjiang.tool.enums;

/**
 * @description:
 * @author: John
 * @version: ErrorCode.java, v1.0 2024年12月11日 20:10
 */
public enum ErrorCode implements IErrorCode{
    SUCCESS("001","成功",ErrorLevel.BIZ)
    ;

    private final String code;
    private final String desc;
    private final ErrorLevel level;

    ErrorCode(String code, String desc, ErrorLevel level) {
        this.code = code;
        this.desc = desc;
        this.level = level;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public ErrorLevel getLevel() {
        return level;
    }
}
